import { getColumnsData } from "../common";

const capitalRecordListTable = [
  {
    user_id: "4997", // 用户ID
    user_name: "15555555555", // 用户账号
    money_type: "幸运币", // 金额类型
    handle_money: "719", // 操作金额
    before_handle_money: "4705", // 操作前金额
    after_handle_money: "5424", // 操作后金额
    handle_type: "增加", // 操作类型
    handle_memo: "中奖商品回收获得", // 操作备注
    expand_info: "41190", // 扩展信息
    handle_time: "2019-01-01 00:00:00" // 操作时间
  }
];

const headerList = [
  {
    width: "100px",
    label: "编号",
    prop: "id",
    sortable: true
  },
  {
    width: "100px",
    label: "用户ID",
    prop: "user_id"
  },
  {
    label: "用户账号",
    prop: "user_name"
  },
  {
    width: "120px",
    label: "金额类型",
    prop: "money_type"
  },
  {
    width: "120px",
    label: "操作金额",
    prop: "handle_money"
  },
  {
    width: "120px",
    label: "操作前金额",
    prop: "before_handle_money"
  },
  {
    width: "120px",
    label: "操作后金额",
    prop: "after_handle_money"
  },
  {
    label: "操作类型",
    prop: "handle_type"
  },
  {
    label: "操作备注",
    prop: "handle_memo"
  },
  {
    label: "扩展信息",
    prop: "expand_info"
  },
  {
    width: "auto",
    label: "操作时间",
    prop: "handle_time"
  }
];

const capitalRecordListColumns = [];

getColumnsData(
  "capitalRecordList",
  capitalRecordListColumns,
  headerList,
  res => {
    console.log("capitalRecordList", res);
  }
);
export { capitalRecordListTable, capitalRecordListColumns };
